//
//  YCAlertAction.h
//  YCAlertViewDemo
//
//  Created by carpenter on 2019/11/7.
//  Copyright © 2019 carpenter. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

typedef void(^YCAlertActionCompletionHandle)(void);

@interface YCAlertAction : NSObject

/// 文本
@property (nonatomic ,strong) NSString * title;

/// 字体颜色
/// @discussion 优先级高于‘YCAlertConfig actionTextColor’
@property (nonatomic ,strong) UIColor * textColor;

/// 字体大小
/// @discussion 优先级高于‘YCAlertConfig actionTextFont’
@property (nonatomic ,strong) UIFont * textFont;

/// 常规背景颜色
/// @discussion 优先级高于‘YCAlertConfig actionBackgroundNormalColor’
@property (nonatomic ,strong) UIColor * backgroundNormalColor;

/// 高亮背景颜色
/// @discussion 优先级高于‘YCAlertConfig actionBackgroundHeightColor’
@property (nonatomic ,strong) UIColor * backgroundHeightColor;

/// 点击回调
@property (nonatomic ,strong) YCAlertActionCompletionHandle completionHandle;


/// 快速创建对象
/// @discussion 未设置的属性均可参考YCAlertConfig中配置参数
/// @param title 文本
/// @param completionHandle 点击回调
+(instancetype)actionWithTitle:(NSString *)title
              completionHandle:(YCAlertActionCompletionHandle)completionHandle;

/// 快速创建对象
/// @param title 文本
/// @param textColor 字体颜色
/// @param completionHandle 点击回调
+(instancetype)actionWithTitle:(NSString *)title
                     textColor:(UIColor *)textColor
              completionHandle:(YCAlertActionCompletionHandle)completionHandle;

 

@end


